ModPerl handler
am 18.05.2011 21:43:57 von MarcoThis is a multi-part message in MIME format.
--------------060206050801000802060902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I'm writing an handler to execute with mod_perl.
I want to associate an handler of type PerlPostConfigHandler.
I write this code (filename=StartupLog.pm):
#file:Apache/StartupLog.pm
package Apache::StartupLog;
use strict;
use warnings;
use Apache();
use Apache::Constants qw(OK);
sub funzione {
my $r=shift;
$r->content_type('text/html');
my $remote_ip = $r->connection->remote_ip;
$r->print("
"
hello ", $remote_ip , "",
"");
return OK;
}
1;
My questions are:
1. I don't know what is the code I must put in httpd.conf file.
2. Where must I put the file StartupLog.pm in the filesystem?
Can someone help me?
Thanks
--------------060206050801000802060902
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
link="#0000ee">
Hi,
I'm writing an handler to execute with mod_perl.
I want to associate an handler of type PerlPostConfigHandler.
I write this code (filename=StartupLog.pm):
#
package Apache::StartupLog;
use strict;
use warnings;
use Apache();
use Apache::Constants qw(OK);
sub funzione {
my $r=shift;
$r->content_type('text/html');
my $remote_ip = $r->connection->remote_ip;
$r->print("
<html><head><title>mod_perl
test</title></head>",
"<body><h1>hello ", $remote_ip , "<h1>",
"</body></html>");
return OK;
}
1;
My questions are:
1. I don't know what is the code I must put in httpd.conf file.
2. Where must I put the file StartupLog.pm in
the filesystem?
Can someone help me?
Thanks
--------------060206050801000802060902--
"");
return OK;
}
1;
My questions are:
1. I don't know what is the code I must put in httpd.conf file.
2. Where must I put the file StartupLog.pm in the filesystem?
Can someone help me?
Thanks
--------------060206050801000802060902
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit